<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>히오스 밴픽 툴</title>
</head>

<body>
<script>
function numCheck()
{
	var a = parseInt(window.document.setting_form.a.value);
	var b = parseInt(window.document.setting_form.b.value);
	var c = parseInt(window.document.setting_form.c.value);
	var d = parseInt(window.document.setting_form.d.value);
	var e = parseInt(window.document.setting_form.e.value);

	if ((a + b + c + d + e) > 5) {
		window.alert("영웅 밴 수가 5를 넘습니다.");
		return false;
	}

	return true;
}

function pwCheck()
{
	var password_1 = window.document.setting_form.password_1.value;
	var password_2 = window.document.setting_form.password_2.value;

	if (password_1 == "" | password_2 == "") {
		window.alert("양팀의 비밀번호를 설정하지 않았습니다.");
		return false;
	}

	return true;
}
</script>
<div id="container" style="background-color:#FFCCCC; width:1260px; height:700px; margin: auto; vertical-align:middle; text-align: center;">
	<div id="form" style="margin: auto; width: 650px; position: relative; top: 100px;">
		<form method="post" name="setting_form" action="setting_default_ok.php" onsubmit="return pwCheck();">
			<table style="width: 650px; border:0; text-align: center;">
				<tr style="height: 40px;">
					<td>양팀 로그인 비밀번호 설정</td>
				</tr>
				<tr>
					<td>
						1팀 비밀번호: <input type="text" name="password_1" value="1test" size="10" maxlength="10"> /
						2팀 비밀번호: <input type="text" name="password_2" value="2test" size="10" maxlength="10">
					</td>
				</tr>
				<tr style="height: 40px;">
					<td colspan="2">우선권 지정 여부 설정</td>
				</tr>
				<tr>
					<td>
						1팀 우선 <input type="radio" name="priority" value="1"> / 
						2팀 우선 <input type="radio" name="priority" value="2"> / 
						가위바위보 <input type="radio" name="priority" value="r" checked>
					</td>
				</tr>
				<tr style="height: 40px;">
					<td colspan="2">영웅 밴 타이밍 및 수 설정</td>
				</tr>
				<tr>
					<td>0.5턴: 0 <input type="radio" name="a" value="0" checked> / 
								1 <input type="radio" name="a" value="1" onclick="return numCheck();"> / 
								2 <input type="radio" name="a" value="2" onclick="return numCheck();"> / 
								3 <input type="radio" name="a" value="3" onclick="return numCheck();"><br>
						1.5턴: 0 <input type="radio" name="b" value="0" checked> / 
								1 <input type="radio" name="b" value="1" onclick="return numCheck();"> / 
								2 <input type="radio" name="b" value="2" onclick="return numCheck();"> / 
								3 <input type="radio" name="b" value="3" onclick="return numCheck();"><br>
						2.5턴: 0 <input type="radio" name="c" value="0" checked> / 
								1 <input type="radio" name="c" value="1" onclick="return numCheck();"> / 
								2 <input type="radio" name="c" value="2" onclick="return numCheck();"> / 
								3 <input type="radio" name="c" value="3" onclick="return numCheck();"><br>
						3.5턴: 0 <input type="radio" name="d" value="0" checked> / 
								1 <input type="radio" name="d" value="1" onclick="return numCheck();"> / 
								2 <input type="radio" name="d" value="2" onclick="return numCheck();"> / 
								3 <input type="radio" name="d" value="3" onclick="return numCheck();"><br>
						4.5턴: 0 <input type="radio" name="e" value="0" checked> / 
								1 <input type="radio" name="e" value="1" onclick="return numCheck();"> / 
								2 <input type="radio" name="e" value="2" onclick="return numCheck();"> / 
								3 <input type="radio" name="e" value="3" onclick="return numCheck();"><br>
					</td>
				</tr>
				<tr style="height: 40px;">
					<td>
						<input type="submit" name="submit" value="확인" />
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>
</body>
</html>